package com.blueocean.care.management.filter;

import com.blueocean.care.management.domain.SysResult;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;

/**
 * @version 1.0
 * @author: zwg.BlueOcean
 * @date 2018/7/31 11:10
 * @description 自定义post过滤器，适合做日志，结果拦截
 */
public class Post0CustomFilter extends ZuulFilter {
    @Override
    public String filterType() {
        return "post";
    }

    @Override
    public int filterOrder() {
        return 0;
    }

    @Override
    public boolean shouldFilter() {
        return true;
    }

    @Override
    public Object run() {
        System.err.println("post filter");
        //TODO:加入请求日志打印逻辑
        return null;
    }
}
